const mongoose = require("mongoose")
mongoose.connect("mongodb://localhost:27017/quest", { useNewUrlParser: true, useUnifiedTopology: true })


const userSchema = mongoose.Schema({
    username: {type: String, required: true},
    password: {type: String, required: true},
})

const UserModel = mongoose.model('user',userSchema)
module.exports = UserModel